home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000194_icon-group-sender _Fri Aug 30 08:45:12 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
2KB
Received: by cheltenham.cs.arizona.edu; Fri, 30 Aug 1996 10:52:52 MST
Message-Id: <199608301545.IAA17632@orpheus.gemini.edu>
From: swampler@noao.edu
Date: Fri, 30 Aug 1996 08:45:12 MST
X-Mailer: Mail User's Shell (7.2.3 5/22/91)
To: icon-group@cs.arizona.edu
Subject: Unbuffered reads from Unix pipes?
Errors-To: icon-group-errors@cs.arizona.edu
I left my Icon book at home today - can someone tell me the
character to add to argument 2 of open to read a pipe unbuffered
under Unix? I want to process each line of input from the pipe
as it comes in, and now wait for enough lines to fill the input
buffer.
Thanks!
--
Steve Wampler - swampler@gemini.edu [Gemini 8m Telescopes Project (under AURA)]
The Gods that smiled upon your birth are laughing now. -- fortune cookie
9.2.
I'd appreciate any help.
Thanks!
Christian
------------------- test program --------------
procedure xxx (a)
write("xxx", a, "yyy")
end
procedure main ()
local p
"write"(44)
"xxx"(55)
p := proc("xxx", 1)
p(55)
end
-------------- output -------------
44
Run-time error 106
File t.icn; Line 9
procedure or integer expected
offending value: "xxx"
Trace back:
main()
"xxx"(55) from line 9 in t.icn
--
___________________________________________________________________________
Christian Collberg | Email: c_collberg@cs.auckland.ac.nz
Computer Science Dept | Fax: +64-9-373-7453
University of Auckland | Phone: +64-9-373-7599 x 6137